package com.Lgwd.repository;

import com.Lgwd.entity.UserAccountEntiy;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;


@Repository
public interface UserAccountRepository extends JpaRepository<UserAccountEntiy, Integer> {


    @Query(value="select * FROM `useraccount` where user_account=?1" , nativeQuery = true)
    UserAccountEntiy findByUser_account(@Param("user_account") String userAccount);
}
